﻿<Window x:Class="DSLPedControlsTestExe.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dsl="clr-namespace:Dsl.Ped.Controls.ProjectiveControl;assembly=DSLPedControls" Title="MainWindow" Height="350" Width="525">
    <Grid>
        <dsl:ProjectiveControl>
            <dsl:ProjectionContainerControl Title="HelloProjection">
                <dsl:ProjectionControl Name="HelloProjection">
                    <Label>Hello Projection</Label>
                </dsl:ProjectionControl>
            </dsl:ProjectionContainerControl>
            <dsl:ProjectionContainerControl Title="ByeProjection">
                <dsl:ProjectionControl Name="ByeProjection">
                    <Label>Bye Projection</Label>
                </dsl:ProjectionControl>
            </dsl:ProjectionContainerControl>
            <!--<dsl:ProjectionContainerControl Title="TextContainer">
                <dsl:ProjectionContainerControl.Transitions>
                    <dsl:TransitionControl FromProjection="EEE" Event="MouseMove"></dsl:TransitionControl>
                    <dsl:TransitionControl FromProjection="FFF"></dsl:TransitionControl>
                </dsl:ProjectionContainerControl.Transitions>
                <dsl:ProjectionControl Name="EEE">
                    <Label>TextContainer content within label</Label>
                </dsl:ProjectionControl>
                <dsl:ProjectionControl Name="FFF">
                    <Label>TextContainer content within label after event</Label>
                </dsl:ProjectionControl>
            </dsl:ProjectionContainerControl>
            <dsl:ProjectionContainerControl Title="RecursiveContainer">
                <dsl:ProjectionControl>
                    <Grid Margin="5,5,5,5">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Label Grid.Row="0">Recursive Container content</Label>
                        <dsl:ProjectiveControl Grid.Row="1">                                                        
                            <dsl:ProjectionContainerControl Title="eee" SelectedIndex="1">
                                <dsl:ProjectionContainerControl.Transitions>
                                    <dsl:TransitionControl Event="MouseDown" FromProjection="AAA" ToProjection="XXX"/>
                                    <dsl:TransitionControl Event="GotFocus" FromProjection="AAA" ToProjection="XXX"/>
                                    <dsl:TransitionControl Event="Button.Click" FromProjection="XXX" ToProjection="AAA"/>
                                </dsl:ProjectionContainerControl.Transitions>
                                <TextBox>ddd</TextBox>
                                <dsl:ProjectionControl Name="AAA">                                    
                                    <StackPanel>
                                        <Label>TheText:</Label>
                                        <TextBox  Text="{Binding Path=TheText, UpdateSourceTrigger=PropertyChanged}"/>
                                    </StackPanel>                                    
                                </dsl:ProjectionControl>
                                <dsl:ProjectionControl Name="XXX">
                                    <StackPanel Orientation="Vertical">
                                        <TextBox></TextBox>
                                        <Button>OK</Button>
                                    </StackPanel>                                    
                                </dsl:ProjectionControl>
                            </dsl:ProjectionContainerControl>
                            <dsl:ProjectionContainerControl Title="fff">
                                <dsl:ProjectionControl>
                                    <TextBox Text="{Binding Path=TheText, UpdateSourceTrigger=PropertyChanged}" Margin="5,5,5,5"/>
                                </dsl:ProjectionControl>
                            </dsl:ProjectionContainerControl>
                        </dsl:ProjectiveControl>
                    </Grid>
                </dsl:ProjectionControl>
            </dsl:ProjectionContainerControl>-->
        </dsl:ProjectiveControl>
        <!--<dsl:DslProjectiveControl ItemsSource="{Binding Path=Items}"/>-->
    </Grid>
</Window>
